<template>
  <div class="son">
    <h1>我是son子组件</h1>
    <!-- <h2>我是默认插槽</h2>
    <slot />
    <h2>默认插槽结束</h2> -->
    <h2>我是abc具名手柄</h2>
    <slot name="abc" />
    <h2>abc具名手柄结束</h2>
    <hr>
    <h2>作用域插槽--默认插槽</h2>
    <slot num="86期" aaa="hello" />
    <h2>作用域插槽--具名插槽</h2>
    <slot name="ooo" str="helloworld" />
  </div>
</template>
<script>
export default {}
</script>
<style lang="scss" scoped>
.son {
  width: 300px;
  height: 600px;
  border: 5px solid red;
}
</style>
